from django.conf.urls import url
from dictapi import views


urlpatterns = [
    url(regex=r'^now/$',
        view=views.SaveWordEntries.as_view(),
        name=views.SaveWordEntries.name),
    url(regex=r'^auto/$',
        view=views.SearchAutoComplete.as_view(),
        name=views.SearchAutoComplete.name),
    url(regex=r'^entries/(?P<word>.{,20})/$',
        view=views.LookupWord.as_view(),
        name=views.LookupWord.name),
]
